package chances.epg.ui.taglib.html;

import javax.servlet.jsp.JspException;

import chances.epg.ui.taglib.model.Rect;

@SuppressWarnings("serial")
public class ViewportTag extends EpgTagSupport {
	@Override
	public int doStartTag() throws JspException {
		epgPageContext.setViewport(new Rect(0, 0, width, height));
		return super.doStartTag();
	}

	private int width;
	private int height;

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}
}
